package com.yitao.client.model.order;

import com.skipper.base.data.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;
import java.util.Date;

/**
 * 商城订单退款 实体映射类
 *
 * @Auther: Kien
 * @Date: 2019/3/11 14:03
 * @Description:
 */
@Entity
@Table(name="t_mall_order_refund")
public class MallOrderRefundModel extends BaseEntity {

    @Id
    @Column(name = "id", columnDefinition = "BIGINT")
    // 默认为自增id 如果不需 则删除
    @GeneratedValue(strategy = GenerationType.IDENTITY)

    /**
     *  主键
     *  @mbggenerated
     */
    private Long id;


    /**
     *  退款类型 1:普通退款 2:缺货退款，3:赔偿退款(部分退款)
     *  @mbggenerated
     */
    private Integer refundType;


    /**
     *  退款原因 1:不想要了/拍错了 2:快递原因 3:卖家实际未发货 4:协商一致退款 5:缺货 6:其他
     *  @mbggenerated
     */
    private Integer refundReason;


    /**
     *  关联的订单id
     *  @mbggenerated
     */
    private Long orderId;


    /**
     *  订单用户id
     *  @mbggenerated
     */
    private Long buyerId;


    /**
     *  关联的订单code 冗余字段
     *  @mbggenerated
     */
    private String orderCode;


    /**
     *  退款状态 -10退款申请中，-20退款申请驳回-30退款中，-40退款成功
     *  @mbggenerated
     */
    private Integer refundStatus;


    /**
     *  退款说明
     *  @mbggenerated
     */
    private String refundDescription;


    /**
     *  解决时间
     *  @mbggenerated
     */
    private Date refundTime;


    /**
     *  是否删除
     *  @mbggenerated
     */
    private Boolean isDelete;


    /**
     *  创建人
     *  @mbggenerated
     */
    private Long createBy;


    /**
     *  创建时间
     *  @mbggenerated
     */
    private Date createTime;


    /**
     *  修改人
     *  @mbggenerated
     */
    private Long lastUpdateBy;


    /**
     *  修改时间
     *  @mbggenerated
     */
    private Date lastUpdateTime;

    /**
     * 联系号码
     */
    private String phone; // 2019.05.14

    /**
     * 退款金额
     */
    private Long refundFee; // 2019.05.09

    /**
     * This method was generated by MyBatis Generator
     * @mbggenerated
     */
    public Long getId() {return id;}

    public void setId(Long id) {this.id = id;}
    /**
     * This method was generated by MyBatis Generator
     * @mbggenerated
     */
    public Integer getRefundType() {return refundType;}

    public void setRefundType(Integer refundType) {this.refundType = refundType;}
    /**
     * This method was generated by MyBatis Generator
     * @mbggenerated
     */
    public Integer getRefundReason() {return refundReason;}

    public void setRefundReason(Integer refundReason) {this.refundReason = refundReason;}
    /**
     * This method was generated by MyBatis Generator
     * @mbggenerated
     */
    public Long getOrderId() {return orderId;}

    public void setOrderId(Long orderId) {this.orderId = orderId;}
    /**
     * This method was generated by MyBatis Generator
     * @mbggenerated
     */
    public Long getBuyerId() {return buyerId;}

    public void setBuyerId(Long buyerId) {this.buyerId = buyerId;}
    /**
     * This method was generated by MyBatis Generator
     * @mbggenerated
     */
    public String getOrderCode() {return orderCode;}

    public void setOrderCode(String orderCode) {this.orderCode = orderCode;}
    /**
     * This method was generated by MyBatis Generator
     * @mbggenerated
     */
    public Integer getRefundStatus() {return refundStatus;}

    public void setRefundStatus(Integer refundStatus) {this.refundStatus = refundStatus;}
    /**
     * This method was generated by MyBatis Generator
     * @mbggenerated
     */
    public String getRefundDescription() {return refundDescription;}

    public void setRefundDescription(String refundDescription) {this.refundDescription = refundDescription;}
    /**
     * This method was generated by MyBatis Generator
     * @mbggenerated
     */
    public Date getRefundTime() {return refundTime;}

    public void setRefundTime(Date refundTime) {this.refundTime = refundTime;}
    /**
     * This method was generated by MyBatis Generator
     * @mbggenerated
     */
    public Boolean getIsDelete() {return isDelete;}

    public void setIsDelete(Boolean isDelete) {this.isDelete = isDelete;}
    /**
     * This method was generated by MyBatis Generator
     * @mbggenerated
     */
    public Long getCreateBy() {return createBy;}

    public void setCreateBy(Long createBy) {this.createBy = createBy;}
    /**
     * This method was generated by MyBatis Generator
     * @mbggenerated
     */
    public Date getCreateTime() {return createTime;}

    public void setCreateTime(Date createTime) {this.createTime = createTime;}
    /**
     * This method was generated by MyBatis Generator
     * @mbggenerated
     */
    public Long getLastUpdateBy() {return lastUpdateBy;}

    public void setLastUpdateBy(Long lastUpdateBy) {this.lastUpdateBy = lastUpdateBy;}
    /**
     * This method was generated by MyBatis Generator
     * @mbggenerated
     */
    public Date getLastUpdateTime() {return lastUpdateTime;}

    public void setLastUpdateTime(Date lastUpdateTime) {this.lastUpdateTime = lastUpdateTime;}

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Long getRefundFee() {
        return refundFee;
    }

    public void setRefundFee(Long refundFee) {
        this.refundFee = refundFee;
    }
}
